package com.taoxi.good.domain;

import com.taoxi.common.annotation.Excel;
import com.taoxi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 商品图片对象 good_img
 *
 * @author ruoyi
 * @date 2024-10-21
 */
public class GoodImg extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 图片id
     */
    private Long id;

    /**
     * 商品ID
     */
    @Excel(name = "商品ID")
    private Long goodId;

    /**
     * 上传用户
     */
    @Excel(name = "上传用户")
    private Long userId;

    /**
     * 路径
     */
    @Excel(name = "路径")
    private String url;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getGoodId() {
        return goodId;
    }

    public void setGoodId(Long goodId) {
        this.goodId = goodId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("goodId", getGoodId())
                .append("userId", getUserId())
                .append("url", getUrl())
                .toString();
    }
}
